﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace RssReaderTemplate.Wizard
{
    /// <summary>
    /// Interaction logic for Wizard.xaml
    /// </summary>
    public partial class Wizard : Window
    {
        public Wizard()
        {
            InitializeComponent();
        }

        public Wizard(TemplateParameters templateParameters) : this()
        {
            TemplateParameters = templateParameters;
        }

        private TemplateParameters _templateParameters = new TemplateParameters();

        public TemplateParameters TemplateParameters
        {
            get { return _templateParameters; }
            set { _templateParameters = value; }
        }


        private void CommandBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            e.CanExecute = true;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            DataContext = TemplateParameters;
        }
    }
}
